﻿#ifndef UPMAINWINDOW_H
#define UPMAINWINDOW_H

#include <QQuickItem>
#include <uptrianglewindow.h>

class UpMainWindow : public QQuickItem
{
    Q_OBJECT
    Q_PROPERTY(qreal frame READ frame WRITE setFrame NOTIFY frameChanged)

public:
    explicit UpMainWindow(QQuickItem *parent=0);
    ~UpMainWindow();

signals:
    void frameChanged();

public slots:
    void sync();
    void cleanup();
    qreal frame(){ return m_frame; }
    void setFrame(qreal frame);

private slots:
    void handleWindowChanged(QQuickWindow *win);

private:
    UpTriangleWindow *m_triangleWindow;
    qreal m_frame;

};

#endif // UPMAINWINDOW_H
